import fetch from "@/api/fetch"
import constants from "@/api/constants"

const baseURL = constants.baseURL + "/product";

const api = {
    // 分类
    category: {
        treeList() {
            return fetch.get(baseURL + "/category/treeList");
        }
    },
    // 商品
    spu: {
        info(id) {
            return fetch.get(baseURL + "/spu/apiInfo/" + id);
        }
    }
}

export default api;